package com.angel.mocks.providers;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.angel.architecture.persistence.base.PersistentObject;


@Entity
public class Address extends PersistentObject {

	private static final long serialVersionUID = -7952919924505978408L;
	private Number zipNumber;
	@Column(nullable = false)
	private String street;
	@Column(nullable = false)
	private Integer number;

	public Address(){
		super();
	}

	/**
	 * @return the zipNumber
	 */
	public Number getZipNumber() {
		return zipNumber;
	}

	/**
	 * @param zipNumber the zipNumber to set
	 */
	public void setZipNumber(Number zipNumber) {
		this.zipNumber = zipNumber;
	}

	/**
	 * @return the street
	 */
	public String getStreet() {
		return street;
	}

	/**
	 * @param street the street to set
	 */
	public void setStreet(String street) {
		this.street = street;
	}

	/**
	 * @return the number
	 */
	public Integer getNumber() {
		return number;
	}

	/**
	 * @param number the number to set
	 */
	public void setNumber(Integer number) {
		this.number = number;
	}

	//@ObjectProviderName
	public String getIdentifierObject(){
		return this.getStreet() + "-" + this.getNumber() + " ("+ this.getZipNumber() + ")";
	}
}
